function userinfos(numcarte,password,nom,prenom,smiles,typecarte,origine,destination) {
	this.numcarte = numcarte || '29090109';
	this.password = password || 0;
	this.nom = nom || '';
	this.prenom = prenom || '';
	this.smiles = smiles || 0;
	this.typecarte = typecarte || '';
	this.origine = origine || '';
	this.destination = destination || '';
	
	this.load=function() {
		if (System.Gadget.Settings.read('sncf_dataondisk')==1) {
			this.numcarte = System.Gadget.Settings.readString('sncf_numcarte');
			this.password = System.Gadget.Settings.read('sncf_password');
			this.nom = System.Gadget.Settings.readString('sncf_nom');
			this.prenom = System.Gadget.Settings.readString('sncf_prenom');
			this.smiles = System.Gadget.Settings.read('sncf_smiles');
			this.typecarte = System.Gadget.Settings.readString('sncf_typecarte');
			this.destination = System.Gadget.Settings.readString('sncf_destination');
			this.origine = System.Gadget.Settings.readString('sncf_origine');
			
			if(document.getElementById('numcarte')) {document.getElementById('numcarte').value=this.numcarte;}
			if(document.getElementById('password')) {document.getElementById('password').value=this.password;}
			if(document.getElementById('nom')) {document.getElementById('nom').innerHTML=this.nom;}
			if(document.getElementById('prenom')) {document.getElementById('prenom').innerHTML=this.prenom;}
			if(document.getElementById('smiles')) {document.getElementById('smiles').innerHTML=this.smiles;}
			if(document.getElementById('origine0')) {document.getElementById('origine0').value=this.origine;}
			if(document.getElementById('destination0')) {document.getElementById('destination0').value=this.destination;}
			if(document.getElementById('origine1')) {document.getElementById('origine1').value=this.origine;}
			if(document.getElementById('destination1')) {document.getElementById('destination1').value=this.destination;}
		}
	}
	this.save=function() {
		if(this.numcarte!='29090109') System.Gadget.Settings.writeString('sncf_numcarte',this.numcarte);
		if(this.password!='') System.Gadget.Settings.write('sncf_password',this.password);
		if(this.nom!='') System.Gadget.Settings.writeString('sncf_nom',escape(this.nom));
		if(this.prenom!='') System.Gadget.Settings.writeString('sncf_prenom',escape(this.prenom));
		if(this.smiles!=0) System.Gadget.Settings.write('sncf_smiles',this.smiles);
		if(this.typecarte!='') System.Gadget.Settings.writeString('sncf_typecarte',escape(this.typecarte));
		if(this.destination!='') System.Gadget.Settings.writeString('sncf_destination',escape(this.destination));
		if(this.origine!='') System.Gadget.Settings.writeString('sncf_origine',escape(this.origine));
		System.Gadget.Settings.write('sncf_dataondisk',1);
	}
	this.erase=function() {
		if(document.getElementById('numcarte')) {document.getElementById('numcarte').value='29090109';}
		if(document.getElementById('password')) {document.getElementById('password').value='';}
		if(document.getElementById('origine0')) {document.getElementById('origine0').value='';}
		if(document.getElementById('destination0')) {document.getElementById('destination0').value='';}
		if(document.getElementById('origine1')) {document.getElementById('origine1').value='';}
		if(document.getElementById('destination1')) {document.getElementById('destination1').value='';}
		System.Gadget.Settings.writeString('sncf_numcarte','29090109');
		System.Gadget.Settings.write('sncf_password',0);
		System.Gadget.Settings.writeString('sncf_nom','');
		System.Gadget.Settings.writeString('sncf_prenom','');
		System.Gadget.Settings.write('sncf_smiles',0);
		System.Gadget.Settings.writeString('sncf_typecarte','');
		System.Gadget.Settings.writeString('sncf_destination','');
		System.Gadget.Settings.writeString('sncf_origine','');
		System.Gadget.Settings.write('sncf_dataondisk',0);
	}
}